package com.example.pcl.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.pcl.pojo.dto.AdminCommentFilterDTO;
import com.example.pcl.pojo.entity.HealthKnowledgeComments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pcl.pojo.vo.AdminCommentVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 健康知识评论表，记录用户对心理健康知识的评论 Mapper 接口
 * </p>
 *
 * @author xx
 * @since 2024-12-17
 */
@Mapper
public interface HealthKnowledgeCommentsMapper extends BaseMapper<HealthKnowledgeComments> {

    IPage<AdminCommentVO> listComments(Page<?> page, AdminCommentFilterDTO filterDTO);

    AdminCommentVO findById(Integer id);
}
